package com.lyhdev.android.touchenglish;

import android.app.Activity;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.ImageView;

public class ViewImageActivity extends Activity implements OnClickListener {

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		super.onCreate(savedInstanceState);
		setContentView(R.layout.view);
		
		Bundle bundle = this.getIntent().getExtras();
		String imagePath = bundle.getString("imagePath");
		ImageView image = (ImageView) findViewById(R.id.ImageViewOnly);
		image.setImageBitmap(BitmapFactory.decodeFile(imagePath));
	}

	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.ImageViewOnly:
			break;
		}
	}
}